package com.eshop.tools.service;

import org.springframework.scheduling.annotation.Async;
import com.eshop.tools.domain.vo.EmailVo;
import com.eshop.tools.domain.EmailConfig;
import com.eshop.common.service.BaseService;

public interface EmailConfigService extends BaseService<EmailConfig>
{
    void update(final EmailConfig emailConfig, final EmailConfig old);
    
    EmailConfig find();
    
    @Async
    void send(final EmailVo emailVo, final EmailConfig emailConfig) throws Exception;
}
